import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    redirect: '/login',
    component: () => import('@/views/login')
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/login')
  },
  {
    path: '/home',
    name: 'home',
    component: () => import('@/views/home/home'),
    children: [
      {path: '/aa', name: 'aa', component: () => import('@/views/home/rightnav/aa')},
      {path: '/bb', name: 'bb', component: () => import('@/views/home/rightnav/bb')},
      {path: '/cc', name: 'cc', component: () => import('@/views/home/rightnav/cc')},
      {path: '/dd', name: 'dd', component: () => import('@/views/home/rightnav/dd')},
      {path: '/ee', name: 'ee', component: () => import('@/views/home/rightnav/ee')},
      {path: '/ff', name: 'ff', component: () => import('@/views/home/rightnav/ff')},
      {path: '/wei1', name: 'wei1', component: () => import('@/views/home/rightnav/wei1')},
    ]
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
